package com.yb.module.model.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yb.framework.core.base.BaseMapper;
import com.yb.framework.core.base.BaseServiceImpl;
import com.yb.module.model.domain.ModelTemplateShape;
import com.yb.module.model.mapper.ModelTemplateShapeMapper;
import com.yb.module.model.service.ModelTemplateShapeService;

@Service
public class ModelTemplateShapeServiceImpl extends BaseServiceImpl<ModelTemplateShape> implements ModelTemplateShapeService {
	
	@Autowired
	private ModelTemplateShapeMapper modelTemplateShapeMapper;
	
	@Override
	protected BaseMapper<ModelTemplateShape> getMapper() {
		return modelTemplateShapeMapper;
	}

	@Override
	public List<Long> getShapeIdsByTemplateId(Long templateId) {
		// TODO Auto-generated method stub
		return modelTemplateShapeMapper.getShapeIdsByTemplateId(templateId);
	}

	@Override
	public List<Long> getTemplateIdsByShapeId(Long shapeId) {
		// TODO Auto-generated method stub
		return modelTemplateShapeMapper.getTemplateIdsByShapeId(shapeId);
	}
}